﻿//Write a program that allocates array of 20 integers and initializes each element by its index multiplied by 5.
//Print the obtained array on the console.

using System;

public class AllocatesArray
{
    public static void Main(string[] args)
    {       
        int[] array = new int[20];
        for (int index = 0; index < array.Length; index++)
        {
            array[index] = index * 5;
            if (index < array.Length - 1)
            {
                Console.Write(array[index] + ", ");
            }
            else
            {
                Console.Write(array[index]);
            }            
        }

        Console.WriteLine();        
    }
}
